package com.hp.techcoin14.mails;

import java.util.Calendar;



public class TestJOC {

    public static void main(String[] args) {
        
    	OutlookMailProxy outlookMailProxy = new JOCOutlookMailProxy();
    	
    	Calendar cal = Calendar.getInstance();
    	cal.add(Calendar.DATE, -1);
    	System.out.println("All mails rcieved after date = "+ cal.getTime());
    	
    	for(Mail mail: outlookMailProxy.getAllMailsAfter(cal.getTime())){
    			System.out.println(mail);
    	}
    	
    }
	
  


}
